const path = require('path');

module.exports = {
	mode: 'production',
    entry: path.resolve(__dirname, './src/main.js'),
    module:{
    	//转换 txt 的文本内容;
	    rules:[{
	        test:/\.txt$/,
	        use:path.resolve(__dirname, './loader/txtLoader.js')
	    }]
	}
};